#!/bin/sh

echo;
echo "- This patch apply to Kloxo 6.1.x for to make NO 'could_not_zip_dir' warning";
echo "  for certain condition";
echo;


if [ -f /usr/local/lxlabs/kloxo/bin/kloxoversion ] ; then
	echo "- No need running this patch for Kloxo-ST. Just update your Kloxo-ST";
else
	echo " - Patch for Backup/Restore on Kloxo 6.1.12,";

	sed -i 's:\t\tthrow new lxException("could_not_zip_dir:\t\/\/\tthrow new lxException("could_not_zip_dir:' \
		/usr/local/lxlabs/kloxo/httpdocs/htmllib/lib/lib.php
fi

echo;
